package com.xlh.pojo.system;

import java.io.Serializable;
import java.util.Date;

public class Operation implements Serializable {
    /**
     * 流水id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Long userId;

    /**
     * 角色
     *
     * @mbg.generated
     */
    private Integer role;

    /**
     * 对象id
     *
     * @mbg.generated
     */
    private Long objId;

    /**
     * 事件编码
     *
     * @mbg.generated
     */
    private String eventCode;

    /**
     * 事件描述
     *
     * @mbg.generated
     */
    private String eventDesc;

    /**
     * 额外信息
     *
     * @mbg.generated
     */
    private Long operationExtendId;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Long getObjId() {
        return objId;
    }

    public void setObjId(Long objId) {
        this.objId = objId;
    }

    public String getEventCode() {
        return eventCode;
    }

    public void setEventCode(String eventCode) {
        this.eventCode = eventCode;
    }

    public String getEventDesc() {
        return eventDesc;
    }

    public void setEventDesc(String eventDesc) {
        this.eventDesc = eventDesc;
    }

    public Long getOperationExtendId() {
        return operationExtendId;
    }

    public void setOperationExtendId(Long operationExtendId) {
        this.operationExtendId = operationExtendId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", role=").append(role);
        sb.append(", objId=").append(objId);
        sb.append(", eventCode=").append(eventCode);
        sb.append(", eventDesc=").append(eventDesc);
        sb.append(", operationExtendId=").append(operationExtendId);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}